package org.appchat.api;

import com.google.protobuf.Message;

/**
 * Created by Ryan of app-chat.org
 * on: 7/7/12 at 3:49 PM
 */

/**
 * Fancy Java Generics here with multiple bounded type parameters.
 * This will allow the user to implement the interface with any
 * {@link com.google.protobuf.GeneratedMessage}
 * <p/>
 *
 * @see <a href="docs.oracle/javase/tutorial/java/generics">Java Generics</a>
 */
public interface Listener<T extends Message> {
    void messageReceived(T message);
    
    String getQueueName();
}

